package supernaturalgame;

public class RandomMovementStrategy extends MovementStrategy
{
	public RandomMovementStrategy()
	{
		sethSpeed(2);
		setvSpeed(2);
	}

	public void updateLogic(int currentFrame)
	{
		setState(STATE_WALKING);

		if (!translateAgentX(gethSpeed()))
		{
			sethSpeed(-gethSpeed());
			translateAgentX(gethSpeed());
		}


//		translateAgentY(getvSpeed());
//		if (!getScenery().isInsideMap(getAgent().getShadow()))
//		{
//					setvSpeed(-getvSpeed());
//					translateAgentY(getvSpeed());
//		}

		setDirection(gethSpeed());
	}
}
